import { INCREASE, DECREASE } from './actionTypes';

export const increase = () => ({ type: INCREASE })

export const decrease = () => ({ type: DECREASE })

// 异步增加
export const async_increase = () => {
    return (dispatch) => {
        setTimeout(() => {
            dispatch({
                type: INCREASE
            })
        }, 1000)
    }
}